main: Fix UID check based on sysroot path
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 14 Jul 2015 17:14:02 +0000 (13:14 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 16 Jul 2015 16:49:28 +0000 (12:49 -0400)
commit254def3584402e5f5ee877ef4904c9a8783dd440
treec632878a0c32c3658dd3e89119db4f64f2cbdac1
parent708d923125bd94815c7ba4969dadc3fba842ec3f
main: Fix UID check based on sysroot path

This is another place where we were hard-coding a default.  Create the
OstreeSysroot first and THEN check if its path is the root directory.
src/ostree/ot-main.c